import 'package:flutter/material.dart';
import 'package:xindong/models/user/xindong_kongjian_user.dart';
import 'package:xindong/routes/userspace/view/xindong_kongjian_title_container.dart';
import 'package:xindong/widgets/xindong_tags_view.dart';

class XinDongKongJianInfoTags extends StatelessWidget {
  final XinDongSpaceUser model;

  const XinDongKongJianInfoTags({super.key, required this.model});

  @override
  Widget build(BuildContext context) {
    final dataList = model.tags ?? [];
    if (dataList.isEmpty) return const SizedBox();
    return XinDongKongJianTitleContainer(
      title: '标签',
      children: [XinDongTagsView(dataList: dataList)],
    );
  }
}
